<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>add connection panel</title>
    <link rel="stylesheet" href="./lib/layui/css/layui.css">
</head>

<body>

   <div class="layui-container">
        <form class="layui-form layui-form-pane1" action="" lay-filter="first">
                <div class="layui-form-item">
                    <label class="layui-form-label">输入框</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" lay-verify="required|title" required placeholder="请输入标题" autocomplete="off"
                            class="layui-input">
                    </div>
                </div>
                
                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-inline">
                        <input type="password" name="password" lay-verify="required|pass" placeholder="请输入密码" autocomplete="off"
                            class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">请务必填写用户名</div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">select分组</label>
                        <div class="layui-input-block">
                            <select name="quiz" lay-filter="quiz">
                                <option value="">请选择问题</option>
                                <optgroup label="城市记忆">
                                    <option value="0">你工作的第一个城市</option>
                                </optgroup>
                                <optgroup label="学生时代">
                                    <option value="1" disabled>你的工号</option>
                                    <option value="2">你最喜欢的老师</option>
                                </optgroup>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">搜索选择框</label>
                    <div class="layui-input-inline">
                        <select name="interest-search" lay-filter="interest-search" lay-search>
                            <option value=""></option>
                            <option value="写作">写作</option>
                            <option value="1">layer</option>
                            <option value="2" disabled>laydate</option>
                        </select>
                    </div>
                </div>
        
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">复选框</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="like[write]" title="写作">
                        <input type="checkbox" name="like[read]" title="阅读">
                        <input type="checkbox" name="like[game]" title="游戏" disabled>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">原始复选框</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="like1[write]" lay-skin="primary" title="写作">
                        <input type="checkbox" name="like1[read]" lay-skin="primary" title="阅读">
                        <input type="checkbox" name="like1[game]" lay-skin="primary" title="游戏" disabled>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">开关开</label>
                    <div class="layui-input-block">
                        <input type="checkbox" checked name="open" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
                        <input type="checkbox" name="open2" lay-skin="switch" lay-filter="switchTest" lay-text="已绑定|绑定">
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">单选框</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                        <input type="radio" name="sex" value="中型" title="中" disabled>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">请填写描述</label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="desc"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        
   </div>
    <script src="./lib/layui/layui.js"></script>
    <script src="./js/index.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        // test
        // $(document).ready(() => {
        //     $.ajax({
        //         type:'GET',
        //         url:'http://localhost:8394/hello',
        //         data:{
        //             ljxkkk:2,
        //             ljxwww:4
        //         },
        //         success:(err,data) => {
        //             console.log(err,data)
        //         }
        //     })
        // })
    </script>
</body>

</html>